<body>

</body>
<script>
    console.log(location.hash)
    const iframe = document.createElement('iframe');
    iframe.src = 'http://localhost:8000/hash/b.html#name2';
    document.body.appendChild(iframe);
</script>